package com.exia.android.socialnet.facebook;

import org.json.JSONException;
import org.json.JSONObject;

import android.util.Log;

import com.facebook.android.FacebookError;
import com.facebook.android.Util;

public class FacebookWallPostListener extends FacebookRequestListener {

	FacebookWallPostListener(FacebookActivity activity_p){
		super(activity_p);
	}
	
    public void onComplete(final String response) {
        if((activity != null)){
        	/*
        	Log.d("Facebook-Example", "Got response: " + response);
            String message = "<empty>";
            try {
                JSONObject json = Util.parseJson(response);
                message = json.getString("message");
            } catch (JSONException e) {
                Log.w("Facebook-Example", "JSON Error in response");
            } catch (FacebookError e) {
                Log.w("Facebook-Example", "Facebook Error: " + e.getMessage());
            }
            final String text = "Your Wall Post: " + message;
            activity.runOnUiThread(new Runnable() {
                public void run() {
                    activity.mText.setText(text);
                }
            });
            */
        }
    }
}
